package net.wangds.data.impl;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import net.wangds.data.ColumnOrientedDataTypeEnum;
import net.wangds.data.DataTypeEnum;
import net.wangds.data.DisableEnum;
import net.wangds.data.Disableable;
import net.wangds.data.ann.ColumnDef;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@MappedSuperclass
public class IdCreateDisable extends IdCreate implements Disableable {

    private static final long serialVersionUID = 0;

    @Getter @Setter
    @Column
    @Enumerated(EnumType.ORDINAL)
    @ColumnDef(displayname = "是否禁用", dataType = DataTypeEnum.Number,
            colDataType = ColumnOrientedDataTypeEnum.Int, memo = "0:正常,1:禁用")
    @ApiModelProperty("是否禁用")
    private DisableEnum disable;

}
